home *** CD-ROM | disk | FTP | other *** search
-
- > If you look at my original request, I asked also for colours 32-63 to goto
- > colour 0. Without, it looks good, but if anyone can see a way of doing it,
- > I'd be very grateful :-). For anyone who's interested, this is what I got:
- >
- > SCRPOS=Leek(Screen Base+4*5)
- > Memory Fill SCRPOS To SCRPOS+(320*160)/8-1,Chr$(255)
- >
-
- Assemble these lines into a bank, then call them for each bitplane
- with:
-
- Dreg(0)=Num Longwords in a bitplane
- Areg(0)= Address of bitplanes (0-4 on each iteration)
- Areg(1)=Address of bitplane 5
-
- Do this before you fill bitplane 5, and it should convert all colours
- 0-31 to 0. Then the fill will convert them all to colour 32, but they
- will still be black which is what you wanted.
-
- Bra skip
- loop: Move.l 0(A0,D0.l),D1
- And.l 0(A1,D0),D1
- Move.l D1,0(A0,D0.l)
- skip: DBra D0,loop
- Rts
-
- P.s. This assembler is untested, but it is roughly right. You might
- have to split the And into a move and an And if it doesn't take this
- addressing mode.
- --------------------------------------------------------
- WORK: Eurotherm Controls, Worthing
- Email: paul.hickman@controls.eurotherm.co.uk
-
- UNIVERSITY: Imperial College, London
- Email: ph@doc.ic.ac.uk
- --------------------------------------------------------
- The opinions expressed above to not represent the views of
- Eurotherm Controls plc, or Imperial College, or in fact Paul
- Hickman, but are in fact the views of a small furry alien from
- the planet zorg (called fred), so if you don't like them, sue
- him/her/whatever. Death to all tennis players.
-
-